package fragment;

import com.baidu.mapapi.map.BaiduMap;
import com.baidu.mapapi.map.MapView;
import com.example.andoridclient.R;
import com.example.andoridclient.R.id;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class LocationFragment extends Fragment {

	
	MapView mapView;
	BaiduMap bdmap;
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {	
		View view = inflater.inflate(R.layout.fragment_location, container, false);
		if (view != null) {
			mapView = (MapView) view.findViewById(id.bmapView);
			
			bdmap = mapView.getMap();  
			bdmap.setMapType(BaiduMap.MAP_TYPE_NORMAL); 

		}
		return view;
	}
}
